home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
viewers
/
prev
/
prev.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-03-11
|
1KB
|
40 lines
LFLAGS =
YFLAGS = -d
MFLAGS = -DSTATS -DTIME_STATS -I../../lib -g -fsingle /usr/lib/libm.il
CFLAGS = $(MFLAGS) -I../../lib
SRCS = gram.c main.c lex.c prepro.c message.c matrix.c \
expr.c symbol.c object.c ring.c torus.c super.c geom.c \
csg.c comp.c sphere.c box.c cone.c cylinder.c polygon.c \
smalloc.c util.c repeat.c
OBJS = gram.o main.o lex.o prepro.o message.o matrix.o \
expr.o symbol.o object.o ring.o torus.o super.o geom.o \
csg.o comp.o sphere.o box.o cone.o cylinder.o polygon.o \
smalloc.o util.o repeat.o
artview: $(OBJS) ../../lib/libvort.a
cc $(CFLAGS) -o artview $(OBJS) -lvogle -lsunwindow -lsuntool -lpixrect -ll -lm
lint: $(SRCS)
lint -DNOSILLYNESS $(SRCS) -I../../lib -lm > artview.lint
clean:
rm -f *.o core
clobber:
rm -f art *.o core
$(OBJS)\
: art.h gram.h macro.h ../../lib/vort.h
gram.o: gram.c
cc -c -fsingle -pipe -O2 /usr/lib/libm.il -I../../lib gram.c
gram.c gram.h: gram.y
.y.c:
yacc -d $*.y
mv y.tab.c gram.c
if cmp -s y.tab.h $*.h; then rm y.tab.h; else mv y.tab.h $*.h; fi